package com.xu.createThread;

public class Thread3 {
    public static void main(String[] args) {
        Thread thread = new Thread(new Runnable() {
            @Override
            public void run() {
                System.out.println("子线程"+Thread.currentThread().getName());
            }
        });
        thread.start();


        new Thread(()->{
            System.out.println("子线程"+Thread.currentThread().getName());
        }).start();
    }
}
